<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>原型数据</title>
</head>
<script>
    function A(){}
    function B(a){ this.a = a }
    function C(a){ if(a)this.a = a; }
    A.prototype.a = 1;
    B.prototype.a = 1;
    C.prototype.a = 1;
    console.log(new A());
    console.log(new B());
    console.log(new C());
    //构造函数的显示原型对象就是实例对象的隐式原型对象
    var fun = new Function();
    console.log(Function.prototype === fun.__proto__);
    //Function函数的显示原型对象就是Function函数的实例对象的隐式原型对象
    console.log(Function.prototype === Function.__proto__);
    console.log(Function)


    var fn = new Function();
    console.log(fn.prototype);
    console.log(fn.__proto__ === Object.__proto__); //true
    console.log(Function.prototype === Object.__proto__); //true
    console.log(Object.prototype.__proto__);//null
</script>
<body>
    
</body>
</html>